package com.example.firstproject.mapper;

import com.example.firstproject.entity.User;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

/**
 * @Author: lihua
 * @Date: 2024/4/15 10:05
 * @Version: v1.0.0
 * @Description:
 **/
@Mapper
public interface UserMapper {

    public User getByUsername(String username);

    public User getByStudentIdOrName(String studentId,String username);

    public void insertUser(User user);

    public int updateUser(User user);

    public List<User> getUser(Map<String,Object> params);

}
